package com.sinosoft.tcmneim.service.impl;

import com.sinosoft.tcmneim.dao.TblDisecorolStatusDao;
import com.sinosoft.tcmneim.dataObject.TblDisecorolStatus;
import com.sinosoft.tcmneim.service.TblDisecorolStatusService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TblDisecorolStatusServiceImpl implements TblDisecorolStatusService {
    @Resource
    private TblDisecorolStatusDao tblDisecorolStatusDao;


    @Override
    public List<TblDisecorolStatus> list() {
        return tblDisecorolStatusDao.list();
    }

    @Override
    public List<TblDisecorolStatus> selectByItemCode(String itemCode) {
        return tblDisecorolStatusDao.selectByItemCode(itemCode);
    }

    @Override
    public int insertSelective(TblDisecorolStatus tblDisecorolStatus) {
        return tblDisecorolStatusDao.insert(tblDisecorolStatus);
    }

    @Override
    public int updated(TblDisecorolStatus tblDisecorolStatus) {
        return tblDisecorolStatusDao.updated(tblDisecorolStatus);
    }

    @Override
    public int deleteByItemCode(String itemCode) {
        return tblDisecorolStatusDao.deleteByItemCode(itemCode);
    }
}
